package com.by.zhdoctor.repository;

import com.by.zhdoctor.domain.ZhengXing;

import org.springframework.data.jpa.repository.*;

import java.util.List;

/**
 * Spring Data JPA repository for the ZhengXing entity.
 */
@SuppressWarnings("unused")
public interface ZhengXingRepository extends JpaRepository<ZhengXing,Long> {

    @Query(value = "select zx from ZhengXing zx where zx.bingming.bmName=?1")
    List<ZhengXing> findAllByBMName(String bmName);


}
